﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fuzzy
{
    public partial class display : Form
    {
        public display()
        {
            InitializeComponent();
        }
        //FUNCTION WHICH STORES REFRENCE OF MAIN
        public void setMainForm(main refrence1)
        {
            mainform = refrence1;
        }

        private void main_button_Click(object sender, EventArgs e)
        {
           
            this.Hide();
            mainform.Show();
            mainform.BringToFront();
            
        }
        public void showdata()
        {
            stock_dataset.ReadXml(mainform.xmlFile.Path.ToString());
            dataGridView1.DataSource = stock_dataset;
            dataGridView1.DataMember = "Company";
        }
      
       
    }
}
